﻿using FFLTask.GLB.Global.Enum;
using FFLTask.SRV.ViewModel.Account;
using FFLTask.SRV.ViewModel.Project;
using FFLTask.SRV.ViewModel.Shared;
using FFLTask.SRV.ViewModel.Validations;
using System.Collections.Generic;
using System.ComponentModel;

namespace FFLTask.SRV.ViewModel.Task.Content
{
    public class _PublishModel
    {
        public _DropdownlistLinkedModel CurrentProject { get; set; }
        public _SearchByIdOrTitleModel Parent { get; set; }

        [FflRequired]
        [DisplayName("标题")]
        [FflStringLength(255)]
        public string Title { get; set; }
        public string Body { get; set; }
        public IList<_AttachmentModel> Attachments { get; set; }

        public TaskPriority? SelectedPriority { get; set; }
        public IList<TaskPriority> AllPriorities { get; set; }

        public TaskDifficulty? SelectedDifficulty { get; set; }
        public IList<TaskDifficulty> AllDifficulties { get; set; }

        public int? ExpectedWorkPeriod { get; set; }

        public SplitDateTimeModel ExpectedComplete { get; set; }
        public bool Virtual { get; set; }

        public int? SelectedAccepterId { get; set; }
        public IList<UserModel> Accepters { get; set; }
    }
}
